#!/bin/bash

# 设置脚本权限
# 在Linux环境中运行此脚本来设置正确的权限

echo "设置脚本执行权限..."

# 主脚本权限
chmod +x scripts/setup_centos7.sh
chmod +x scripts/deploy.sh
chmod +x scripts/set_permissions.sh

# 维护脚本权限
chmod +x scripts/maintenance/backup.sh
chmod +x scripts/maintenance/restore.sh
chmod +x scripts/maintenance/update.sh
chmod +x scripts/maintenance/monitor.sh

echo "权限设置完成！"

# 验证权限
echo "验证脚本权限:"
ls -la scripts/*.sh
ls -la scripts/maintenance/*.sh